import requests

cookies = {
    'YJSESSIONID': '70C9B34310444D4EBFF74DCBF1007AB3',
}

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0',
    'Accept': 'application/json, text/javascript, */*; q=0.01',
    'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2',
    # 'Accept-Encoding': 'gzip, deflate',
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'X-Requested-With': 'XMLHttpRequest',
    'Origin': 'http://59.215.208.54:91',
    'Connection': 'keep-alive',
    'Referer': 'http://59.215.208.54:91/hview/manage/dt/Dictuse.do?ismanage=1',
    # 'Cookie': 'YJSESSIONID=70C9B34310444D4EBFF74DCBF1007AB3',
    'Priority': 'u=0',
}

params = {
    'ClassName': 'com.hyysoft.smart.action.sys.DictuserAction.Edit',
}
data={
  "Userid": "990021450",
  "UserGroup": "",
  "Orgcode": "50877",
  "Unionid": "",
  "wxopenid": "",
  "wxappopenid": "",
  "Sid": "88",
  "Grid": "1",
  "ODepId": "",
  "AreaCode": "520300",
  "AreaName": "遵义市",
  "TjUserId": "0",
  "TjUserNum": "0",
  "Lx": "0",
  "Ly": "0",
  "UserBmfgld": "0",
  "UserPosition": "0",
  "userPost": "1",
  "UserIsck": "1",
  "UserIssx": "0",
  "Useroutdate": "",
  "Fgorgcode": "0",
  "Fgorgname": "",
  "Usertsxx": "",
  "hall_id": "520300",
  "Ifuse": "1",
  "if_updata": "1",
  "Createdate": "2024-11-18 18:04:59",
  "update_date": "2024-11-18 18:06:54",
  "HeadImgBase64": "",
  "Xname": "魏念玲",
  "WorkNum": "zyssw_hnl",
  "UserName": "zyssw_hnl",
  "Sex": "男",
  "Sex_c": "男",
  "Zdy_OrgName": "",
  "Usertype": "1",
  "Workname": "23",
  "Depid": "0",
  "Tel": "15121284770",
  "ZTel": "",
  "Email": "",
  "Address": "",
  "HeadImg": "",
  "UserJzdate": "",
  "IfKh": "1",
  "IfKh_c": "1",
  "OUserId": "1AD0DEDEB33C4880A1644282786D193A",
  "Idc": "522130199604030023",
  "IsTjy": "0",
  "IsTjy_c": "0",
  "UserIszz": "0",
  "UserIszz_c": "0",
  "IsKQ": "0",
  "IsKQ_c": "0",
  "UserZzmm": "0",
  "KQWorkNum": "",
  "AppWorkNum": "",
  "AppJob": "",
  "Userjztype": "0",
  "centerMange": "1",
  "centerMange_c": "1",
  "unify_code": "ZYS00002020982",
  "Shownum": "1",
  "URemark": "",
  "company": "0",
  "AllowEditFiled": "Xname,WorkNum,UserName,Sex,Zdy_OrgName,Usertype,Workname,Depid,Tel,ZTel,Email,Address,HeadImg,UserJzdate,IfKh,OUserId,Idc,IsTjy,UserIszz,IsKQ,UserZzmm,KQWorkNum,AppWorkNum,AppJob,Userjztype,centerMange,unify_code,Shownum,URemark,company,Userid,UserGroup,Orgcode,Unionid,wxopenid,wxappopenid,Sid,Grid,ODepId,AreaCode,AreaName,TjUserId,TjUserNum,Lx,Ly,UserBmfgld,UserPosition,userPost,UserIsck,UserIssx,Useroutdate,Fgorgcode,Fgorgname,Usertsxx,hall_id,Ifuse,if_updata,Createdate,update_date,HeadImgBase64",

}


response = requests.post('http://59.215.208.54:91/sysaction.do', params=params, cookies=cookies, headers=headers, data=data).json()
print(response)